import { createRouter, createWebHashHistory } from "vue-router";

export default createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      redirect: "/login"
    },
    {
      name: "mpage",
      path: "/mpage",
      component: () => import('../views/mainPage/mainpage.vue'),
      children: [
        {
          name: "/mpage/pinfo",
          path: "pinfo",
          component: () => import("../views/hgq/project-info.vue")
        }
      ]
      // children: [
      //   // lxc
      //   {
      //     path: 'flower',
      //     component: () => import("../views/lxc/component/flower.vue")
      //   }, {
      //     path: 'blackwhite',
      //     component: () => import("../views/lxc/component/blackwhite.vue")
      //   }, {
      //     path: 'black',
      //     component: () => import("../views/lxc/component/black.vue")
      //   },
      //   // wkw
      //   {
      //     path: "dengji",
      //     component: () => import("../views/wkw/DengJi/dengji.vue")
      //   },
      //   {
      //     path: "classmange",
      //     component: () => import("../views/wkw/ClassMange/classmange.vue")
      //   }
      //   ,
      //   {
      //     path: "zhanghao",
      //     component: () => import("../views/wkw/ZhangHao/zhanghao.vue")
      //   },
      //   // hgq
      //   {
      //     path: "pmanage",
      //     component: () => import("../views/hgq/project.vue"),

      //   },
      //   {
      //     path: "emanage",
      //     component: () => import("../views/hgq/equipment.vue")
      //   },
      //   {
      //     name: "/mpage/pinfo",
      //     path: "pinfo",
      //     component: () => import("../views/hgq/project-info.vue")
      //   },
      //   // dy
      //   {
      //     path: "kaoqin",
      //     component: () => import("../views/dy/kao.vue")
      //   },
      //   {
      //     path: "guize",
      //     component: () => import("../views/dy/rule.vue")
      //   },
      // {
      //   path: "jilu",
      //   component: () => import("../views/dy/record.vue")
      // },
      // {
      //   path:""
      // }

      //   {
      //     path: "zhanghao1",
      //     component: () => import("../views/wxb/zhanghao/zhanghao1.vue")
      //   },
      //   {
      //     path: "quanxian",
      //     component: () => import("../views/wxb/quanxian/quanxian.vue")
      //   },
      //   {
      //     path: "zidian",
      //     component: () => import("../views/wxb/zidian/zidian.vue")
      //   },
      // ]
    },
    {
      path: "/login",
      component: () => import("../views/login/login.vue")
    }
  ]
})
